/*
 * @Author: zqx me_zqx@163.com
 * @Date: 2025-05-15 10:46:45
 * @LastEditors: zqx me_zqx@163.com
 * @LastEditTime: 2025-07-01 18:59:13
 * @FilePath: /XMate-h5/src/services/minutes/index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { http } from "@/utils/http";

export * from "./lateAttender";
export * from "./report";
export * from "@/services/study";
export * from "./share";

// 获取会议纪要
export function fetchAsrStore(confId: string) {
  return http.request({
    url: `/rest/conference/${confId}/asr/store`,
    method: "POST",
    useOriginRes: true
  });
}

// 获取会议纪要 通过分享id
export function fetchAsrStoreByShare(shareId: string) {
  return http.request({
    url: `/rest/conference/record/share/${shareId}/asr/store`,
    method: "GET",
    useOriginRes: true
  });
}

// 获取share token
export function getShareToken(shareId: string, psw: string) {
  return http.request({
    url: `/rest/conference/record/share/${shareId}`,
    method: "POST",
    useOriginRes: true,
    data: {
      password: psw || ""
    }
  });
}

export function getAnalyzeLatAPI(conferenceId: string, methodology: number) {
  return http.request({
    url: `/rest/conference/report/${conferenceId}/summary?methodology=${methodology}`,
    method: "GET"
  });
}

export function getShareAnalyzeLatAPI(shareId: string, methodology: number) {
  return http.request({
    url: `/rest/conference/report/share/${shareId}/summary?methodology=${methodology}`,
    method: "GET"
  });
}

export function getMeetParList(confId: string) {
  return http.request({
    url: `/rest/api/conference/summary/participant/invite/list/${confId}`,
    method: "GET"
  });
}